package com.qiye.pointsserver.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.Data;

/**
 * 积分日志表
 * @TableName sys_pointslog
 */
@TableName(value ="sys_pointslog")
@Data
@Entity
public class Pointslog implements Serializable {
    /**
     * 主键ID
     */
    @Id
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户信息ID 与 sys_userInfo 表关联
     */
    @TableField(value = "userInfo_id")
    private Integer userinfoId;

    /**
     * 积分到期时间
     */
    @TableField(value = "time")
    private String time;

    /**
     * 积分
     */
    @TableField(value = "points")
    private BigDecimal points;

    /**
     * 积分类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * 积分说明
     */
    @TableField(value="`desc`")
    private String desc;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 是否双倍积分 0否 1 是 默认0
     */
    @TableField(value = "is_double")
    private Integer isDouble;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}